#ifndef MODELRESULT_H
#define MODELRESULT_H

#include "abstract-result.h"

class QAbstractTableModel;

class ModelResult : public AbstractResult
{
    Q_OBJECT
public:
    explicit ModelResult(QObject *parent = 0);

    const QAbstractTableModel* model() const;
    QAbstractTableModel* model();

public slots:
    void setModel (QAbstractTableModel *model);

signals:
    void resultReady (ModelResult* result);

protected:
    void emitResultReady();

    QAbstractTableModel* m_model;
};

#endif // MODELRESULT_H
